class SpstatController < ApplicationController
    def index
      @specializations = Specialization.all
    end

    def refresh_applicants
      @sp = Specialization.find(params[:id])
      render :update do |page|
        printappid = "printapplicants" + @sp.id.to_s
        page[printappid].replace :partial => "printapplicants", :locals => {:item => @sp}
        page["printcounts" + @sp.id.to_s].replace :partial => "printcounts", :locals => {:item => @sp}
      end
    end
end
